/**   
 * @Title: ChooseLog.java 
 * @Package cn.edu.cdtu.healthserver.domain 
 * @Description: TODO 
 * @author 
 * @date 
 * @version V0.0   
 */
package cn.edu.cdtu.healthserver.domain;

/** 
 * @ClassName: ChooseLog 
 * @Description: TODO
 * @author 
 * @date 
 *  
 */
public class ChooseLog {

	private int id;
	private int test_log_id;
	private int question_id;
	private int choose_id;
	/** 
	 * @Title: ChooseLog
	 * @Description: TODO
	 * @throws 
	 *
	 */
	public ChooseLog() {
	}
	/** 
	 * @Title: ChooseLog
	 * @Description: TODO
	 * @throws 
	 *
	 * @param test_log_id
	 * @param question_id
	 * @param choose_id
	 */
	public ChooseLog(int test_log_id, int question_id, int choose_id) {
		this.test_log_id = test_log_id;
		this.question_id = question_id;
		this.choose_id = choose_id;
	}
	/** 
	 * @Title: ChooseLog
	 * @Description: TODO
	 * @throws 
	 *
	 * @param id
	 * @param test_log_id
	 * @param question_id
	 * @param choose_id
	 */
	public ChooseLog(int id, int test_log_id, int question_id, int choose_id) {
		this.id = id;
		this.test_log_id = test_log_id;
		this.question_id = question_id;
		this.choose_id = choose_id;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the test_log_id
	 */
	public int getTest_log_id() {
		return test_log_id;
	}
	/**
	 * @param test_log_id the test_log_id to set
	 */
	public void setTest_log_id(int test_log_id) {
		this.test_log_id = test_log_id;
	}
	/**
	 * @return the question_id
	 */
	public int getQuestion_id() {
		return question_id;
	}
	/**
	 * @param question_id the question_id to set
	 */
	public void setQuestion_id(int question_id) {
		this.question_id = question_id;
	}
	/**
	 * @return the choose_id
	 */
	public int getChoose_id() {
		return choose_id;
	}
	/**
	 * @param choose_id the choose_id to set
	 */
	public void setChoose_id(int choose_id) {
		this.choose_id = choose_id;
	}
	/* (non-Javadoc)
	 * <p>Title: hashCode</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + choose_id;
		result = prime * result + id;
		result = prime * result + question_id;
		result = prime * result + test_log_id;
		return result;
	}
	/* (non-Javadoc)
	 * <p>Title: equals</p> 
	 * <p>Description: </p> 
	 * @param obj
	 * @return 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ChooseLog other = (ChooseLog) obj;
		if (choose_id != other.choose_id)
			return false;
		if (id != other.id)
			return false;
		if (question_id != other.question_id)
			return false;
		if (test_log_id != other.test_log_id)
			return false;
		return true;
	}
	/* (non-Javadoc)
	 * <p>Title: toString</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ChooseLog [id=" + id + ", test_log_id=" + test_log_id
				+ ", question_id=" + question_id + ", choose_id=" + choose_id
				+ "]";
	}
	/**
	 * 
	 * @Title: equalsWithoutId 
	 * @Description: 去除ID的等同性判断
	 * @return boolean
	 * @throws 
	 *
	 * @param obj
	 * @return
	 */
	public boolean equalsWithoutId(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ChooseLog other = (ChooseLog) obj;
		if (choose_id != other.choose_id)
			return false;
		if (question_id != other.question_id)
			return false;
		if (test_log_id != other.test_log_id)
			return false;
		return true;
	}
	
}
